package com.njtoyo.taxi.admin.rest.wrapper.local_service.platform;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.mapper.master.enums.local_service.LifeCommodityExchangeType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

@Data
public class PlatformWrapper extends Page<PlatformWrapper> {

    public PlatformWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty(value = "类型名称")
    private String name;

    @ApiModelProperty(value = "商品兑换类型 0:exchange_code[兑换码],1:coupon[优惠券]")
    private LifeCommodityExchangeType commodityExchangeType;
}
